import { Injectable, Scope } from "@nestjs/common";
import { MenuRepositry } from "./menu.repositry";

@Injectable({ scope: Scope.REQUEST })
export class menuService {

  constructor(
    private menuRepository: MenuRepositry
  ) { }

  /**
   * 查询所有目录
   * @returns 目录扁平数组
   */
  getCatalogue() {
    return this.menuRepository.getCatalogue()
  }

}